package controller;

import java.util.ArrayList;
import java.util.List;

public class PoolList {
	private List<Pool> list = new ArrayList<Pool>();

	public PoolList() {
	}

	public void add(Pool p) {
		list.add(p);
	}

	public void insertAll(int itemId, int referencedObjectId) {
		for (Pool p : list) {
			p.insertPoolItem(itemId, referencedObjectId);
		}
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "PoolList [list=" + list + "]";
	}

}
